<? 
session_start();
				
include ('conn.php');
				
$db = get_conn();
				
check_session();
		  

		  
if ($_POST['Actualizar']!=""){
			
	$sql = "update users set 
	email=\"".htmlspecialchars($_POST['email'])."\",
	name=\"".htmlspecialchars($_POST['name'])."\",
	passwd=\"".htmlspecialchars($_POST['passwd'])."\",
	phone1=\"".htmlspecialchars($_POST['phone1'])."\",
	phone2=\"".htmlspecialchars($_POST['phone2'])."\",
	phone3=\"".htmlspecialchars($_POST['phone3'])."\"
 
	where id_user=".$_POST['id_user'];
	
			
	$result = mysql_query($sql);
			
	if($result){
		do_redirect('../edit.php');										
	}else{
		error_handling('users.update - '.$sql,mysql_error());
	}				  
		 
}//update
		  
?>